package com.gitee.dupe.authority.service;

import com.gitee.dolt.boot.service.SuperService;
import com.gitee.dupe.authority.entity.UserRole;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author LYH
 * @since 2020-09-03
 */
public interface IUserRoleService extends SuperService<UserRole> {

    /**
     * 删除用户角色
     *
     * @param userId
     * @return
     */
    boolean removeByUserId(Long userId);

    /**
     * 查找用户角色
     *
     * @param userId
     * @return
     */
    List<UserRole> findAllByUserId(Long userId);

    /**
     * 删除
     *
     * @param userId
     * @param roleIds
     * @return
     */
    boolean removeByUserIdAndRoleIds(Long userId, List<Long> roleIds);
}
